/*
 * @Author: linzaifei 1609781601@qq.com
 * @Date: 2025-06-05 15:49:57
 * @LastEditors: linzaifei 1609781601@qq.com
 * @LastEditTime: 2025-08-15 14:33:05
 * @FilePath: /amap-web-vr/src/api/amap.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */




import axios, { type AxiosInstance } from 'axios'

// 创建请求实例
const instance: AxiosInstance = axios.create({
  baseURL: "https://restapi.amap.com/",
  timeout: 15000, // 15秒超时
  headers: {
    'Content-Type': 'application/json',
  },
})

export function getTips(params: any) {
    params.key = "aaef59cc14dca930cd9a1d6530b8c1dc"
  return instance.get('v3/assistant/inputtips', { params })
}